package com.cskaoyan.mapper;

import com.cskaoyan.bean.CskaoyanmallGroupon;
import com.cskaoyan.bean.CskaoyanmallGrouponExample;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface CskaoyanmallGrouponMapper {
    long countByExample(CskaoyanmallGrouponExample example);

    int deleteByExample(CskaoyanmallGrouponExample example);

    /**
     * delete by primary key
     * @param id primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * insert record to table
     * @param record the record
     * @return insert count
     */
    int insert(CskaoyanmallGroupon record);

    /**
     * insert record to table selective
     * @param record the record
     * @return insert count
     */
    int insertSelective(CskaoyanmallGroupon record);

    List<CskaoyanmallGroupon> selectByExample(CskaoyanmallGrouponExample example);

    /**
     * select by primary key
     * @param id primary key
     * @return object by primary key
     */
    CskaoyanmallGroupon selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") CskaoyanmallGroupon record, @Param("example") CskaoyanmallGrouponExample example);

    int updateByExample(@Param("record") CskaoyanmallGroupon record, @Param("example") CskaoyanmallGrouponExample example);

    /**
     * update record selective
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(CskaoyanmallGroupon record);

    /**
     * update record
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(CskaoyanmallGroupon record);
}